Carbon


CountCollectionOwners

Header: Collections.h Carbon status: Supported

Determines the number of existing references to a collection object.

SInt32 CountCollectionOwners (
    Collection c
);
Parameter descriptions
c

The collection object whose owner count you want to determine. The behavior of this function is undefined if you do not provide a reference to a valid collection object.

function result

The owner count of the collection object.

DISCUSSION

To increment the owner count of a collection object, use the CloneCollection function. To decrement the owner count of a collection object, use the DisposeCollection function.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)